<style>
    .avatars{
        width: 60px;
        border-radius: 50%;
        height: 60px;
    }
    .flex{
        display: flex;
    }
    .bar{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    #avatarHr{
        width:50px;
        height:2px;
        background-color:#d9d9d9;
        margin-top:30px;
    }

</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('用印事由')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[incident]" data-rule="required" rows="10" cols="67"></textarea>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('用印日期')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-date" class="form-control datetimepicker" data-rule="required" name="row[date]" autocomplete="off" data-date-use-current="false" data-date-format="YYYY-MM-DD" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('申请人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_name" class="form-control" data-rule="required" name="row[admin_name]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('申请人所在部门')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-group" data-rule="required" class="form-control selectpicker" name="row[group]">
                {foreach $group_arr as $index=>$vo}
                <option data-type="type" value="{$vo.id}"  >{$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('文件名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-file_name" class="form-control" data-rule="required" name="row[file_name]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('份数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-count" class="form-control" data-rule="required" name="row[count]" type="text" value="0">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('申请印章')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[type]-公章">
                    <input id="row[type]-公章" checked="checked" name="row[type]" type="radio" value="公章"> 公章</label>
                <label for="row[type]-私章">
                    <input id="row[type]-私章" name="row[type]" type="radio" value="私章"> 私章</label>
                <label for="row[type]-财务章">
                    <input id="row[type]-财务章" name="row[type]" type="radio" value="财务章"> 财务章</label>
                <label for="row[type]-其它">
                    <input id="row[type]-其它" name="row[type]" type="radio" value="其它"> 其它</label>
                <input id="c-qita" name="row[qita]" type="text" value="">
            </div>

            <!--<input id="c-type" class="form-control" data-rule="required" name="row[type]" type="text" value="">-->
        </div>
    </div>


    <div class="form-group">
        <label for="c-img" class="control-label col-xs-12 col-sm-2">{:__('附件')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-img"  data-rule="" class="form-control" size="50" name="row[file]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-img"  data-multiple="true" data-preview-id="p-img"><i class="fa fa-upload"></i> 上传</button></span>
                    <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-img"  data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
                </div>
                <span class="msg-box n-right" for="c-img"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-img"></ul>
        </div>
    </div>

    <div class="form-group">
        <label for="c-ids" class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('抄送人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-ids" data-rule="required" data-live-search="true" multiple class="form-control selectpicker" name="row[ids][]">
                {foreach $arr as $index=>$vo}
                <option value="{$vo.id}">{$vo.nickname}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('审批人')}:</label>
        <div class="col-xs-12 col-sm-8 flex">
            {foreach $examine as $index=>$vo}
            <div class="bar">
                <img class="avatars" src="{$vo.avatar}">
                <h4 class="title nickname">{$vo.nickname}</h4>
            </div>
            {if condition="$index < $count-1"}
            <div id="avatarHr"></div>
            {/if}
            <input type="hidden" name="row[id][]" value="{$vo.id}">
            {/foreach}
        </div>
    </div>




    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>